package com.sihan.framework.etm.dto.baseData;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

import com.sihan.framework.etm.common.PageRequest;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@ApiModel("工器具对象")
@EqualsAndHashCode(callSuper=false)
public class ToolDTO extends PageRequest implements Serializable {

	private static final long serialVersionUID = -8195950949755603639L;

	@ApiModelProperty(value = "设备ID")
	private String id;
	
	@ApiModelProperty(value = "设备编号")
	private String code;
	
	@ApiModelProperty(value = "旧设备编号")
	private String oldCode;
	
	private String toolName;
	
	@ApiModelProperty(value = "厂家")
	private String manufactor;
	
	@ApiModelProperty(value = "设备型号")
	private String model;
  
	@ApiModelProperty(value = "设备类型")
	private Short type;
	
	@ApiModelProperty(value = "检定日期")
	private Date testDate;
	
	@ApiModelProperty(value = "有效期")
	private Date expiryDate;
	
	@ApiModelProperty(value = "备注")
	private String remarks;
	
	@ApiModelProperty(value = "责任人")
	private String maintainUserId;
	
	@ApiModelProperty(value = "柜子id")
	private String deviceId;
	
	@ApiModelProperty(value = "绑定装置")
	private String bindDeviceId;
	
	@ApiModelProperty(value = "查询开始时间")
	private String queryStartTime;
	
	@ApiModelProperty(value = "查询结束时间")
	private String queryEndTime;
	
	@ApiModelProperty(value = "智能柜编号")
	private String deviceCode;
	
	@ApiModelProperty(value = "是否绑定(-1:全部，0：未绑定，1：绑定)")
	private Integer isBind;
	private String classifyId;
	private String classId;
	private String standardId;
	@ApiModelProperty(value = "是否百度地图")
	private Boolean baidu = false;

	@Override
	public String toString() {
		return "DeviceDTO [id=" + model + ", type=" + type + ", testDate="
				+ testDate + ", expiryDate=" + expiryDate + ", remarks=" + remarks + "]";
	}
  
}
